package com.test.rabforspringboot.customer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Configuration;

@Configuration
@RabbitListener(queues = {"topicQueue","topicQueue1","topicQueue2"})
public class ReceviceTopic {

    @RabbitHandler
    public void handleMsg(String msg){
        System.out.println(msg);
    }
}
